package com.pandora.credit.service;

import com.pandora.credit.dto.request.AnnouncementRequest;
import com.pandora.credit.dto.response.AnnouncementResponse;
import com.pandora.credit.dto.response.LoanResponseNextLong;
import com.pandora.credit.entity.Announcement;

import java.util.List;

/**
 * @author developer
 */
public interface AnnouncementService {

    /**
     * queryByMidValid
     * @param mid mid
     * @param valid valid
     * @return AnnouncementList
     */
    List<Announcement> queryByMidValid(long mid, int valid);

    /**
     * queryByValidltId
     * @param id id
     * @param valid valid
     * @return AnnouncementList
     */
    List<Announcement> queryByValidltId(long id, int valid);

    /**
     * doGetDetailAnnouncement
     * @param mId mId
     * @return AnnouncementResponse
     */
    AnnouncementResponse doGetDetailAnnouncement(long mId);

    /**
     * doGetAnnouncement
     * @param ua ua
     * @param req req
     * @return LoanResponseNextLong
     */
    LoanResponseNextLong doGetAnnouncement(String ua, AnnouncementRequest req);

}
